<input type="hidden" name="id" value="{$category.id|escape:"html":"UTF-8"}" id="id" />

<div class="inner-content">
	
	<div class="breadcrumb">
		{foreach from="`$breadcrumb`" item="crumb"}<a href="#{$crumb.id}">{$crumb.title|escape:"html":"UTF-8"}</a>{/foreach}
		{$page.revision.title|escape:"html":"UTF-8"}
	</div>
	
	<p>
		<label for="title">Title</label>
		<input type="text" name="category[title]" value="{$category.title|escape:"html":"UTF-8"}" id="title" />
	</p>
	
	<p>
		<label for="path">Path</label>
		<input type="text" name="category[path]" value="{$category.path|escape:"html":"UTF-8"}" id="path" {if $category.parent_id==0}disabled="disabled" class="disabled"{/if} />
	</p>
	
	<p>
		<label for="body">Body</label>
		<textarea name="category[body]" id="body" class="richtext">{$category.body|escape:"html":"UTF-8"}</textarea>
	</p>
	
	<p>
		<label for="display">Display below body</label>
		<select name="category[display]" id="display">
			<option value="" {if $category.display==''}selected="selected"{/if}>Nothing</option>
			<option value="products" {if $category.display=='products'}selected="selected"{/if}>Products</option>
			<option value="subcategories" {if $category.display=='subcategories'}selected="selected"{/if}>Subcategories</option>
		</select>
	</p>
	
	<p>
		<label for="default_order">Default product order</label>
		<select name="category[default_order]" id="default_order">
			<option value="alphabetical" {if $category.default_order=='alphabetical'}selected="selected"{/if}>Alphabetical</option>
			<option value="popular" {if $category.default_order=='popular'}selected="selected"{/if}>Popular</option>
			<option value="newest" {if $category.default_order=='newest'}selected="selected"{/if}>Newest</option>
			<option value="price_low_high" {if $category.default_order=='price_low_high'}selected="selected"{/if}>Price (ascending)</option>
			<option value="price_high_low" {if $category.default_order=='price_high_low'}selected="selected"{/if}>Price (descending)</option>
		</select>
	</p>
	
	<p>
		<label for="image">Image</label>
		<input type="text" name="category[image]" value="{$category.image|escape:"html":"UTF-8"}" id="image" />
	</p>
	
</div>
